<template>
    <div>
        <h1>关于</h1>
        <button @click="gotoHome">跳转到首页</button>
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const gotoHome = () => {
    router.push('/')
}
</script>

<style scoped></style>